<%@ Register TagPrefix="it" TagName="DocumentInfo" Src="~/UserControls/DocumentInstanceInfo.ascx" %>

<%@ Page language="c#" MasterPageFile="~/SF/Forms/SF.Master" Codebehind="Documents.aspx.cs" AutoEventWireup="True" Inherits="ACEMPortal.ACEM.Forms.Reports.Documents" %>
<%@ MasterType TypeName="ScenarioFramework.Portal.SF.Forms.SF"  %>
<%@ Register TagPrefix="cc1" Namespace="UNLV.IAP.WebControls" Assembly="SqlWhereBuilder" %>

<script runat="server">
    
    protected void Page_Load(object sender, System.EventArgs e) 
    {
        Master.TabName = "Documenti";
        Master.SubTabName = "Reports";
    }
    
</script>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

	<table height="100%" width="100%">
		<tr valign="top">
			<td width="200" bgcolor="#6f8cde" height="100%">
			</td>
			<td>
				<table width="100%">
					<TBODY>
						<tr vAlign="top">
							<td vAlign="top"><cc1:sqlwherebuilder id="SqlWhereBuilder1" runat="server" ConditionCellStyle="border: 1px solid #CCCCCC; padding:2px; background-color: #FFFFFF;"
									NoConditionsText="" ValueEntryFile="config_documents/valueEntryDivs.config" OperatorListsFile="Config_documents/operatorLists.config"
									FieldsFile=""></cc1:sqlwherebuilder><br>
								<asp:button id="btnFilter" runat="server" Text="Visualizza" onclick="btnFilter_Click"></asp:button></td>
							<td vAlign="top">
								<UL>
									<asp:placeholder id="placeholderQuery" runat="server"></asp:placeholder></UL>
							</td>
						</tr>
						<tr vAlign="top">
							<td vAlign="top" colSpan="2"><asp:datagrid id="gridDocuments" runat="server" Height="100%" Font-Size="XX-Small" AutoGenerateColumns="False"
									CellPadding="0" BorderStyle="Inset" BorderColor="SkyBlue" Width="100%" BorderWidth="1px" AllowSorting="True">
									<AlternatingItemStyle CssClass="gridAlternative"></AlternatingItemStyle>
									<HeaderStyle BorderWidth="1px" BorderStyle="Outset" BackColor="SkyBlue"></HeaderStyle>
									<Columns>
										<asp:BoundColumn DataField="Id" HeaderText="ID"></asp:BoundColumn>
										<asp:BoundColumn DataField="Type" HeaderText="Tipo"></asp:BoundColumn>
										<asp:BoundColumn DataField="Name" HeaderText="Nome"></asp:BoundColumn>
										<asp:TemplateColumn HeaderText="Consulta">
											<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
											<ItemStyle HorizontalAlign="Left"></ItemStyle>
											<ItemTemplate>
												<asp:imagebutton runat="server" ImageUrl="~/images/icons/lens.gif" AlternateText="Clear" CommandName="Delete"
													CausesValidation="false" ID="Imagebutton3" NAME="Imagebutton3"></asp:imagebutton>
											</ItemTemplate>
										</asp:TemplateColumn>
									</Columns>
								</asp:datagrid></td>
						</tr>
					</TBODY>
				</table>
			</td>
		</tr>
	</table>
</asp:Content>